package com.wuseguang.springcloud.controller;


import com.wuseguang.springcloud.Filter.RequestParameterWrapper;
import com.wuseguang.springcloud.entity.OiCountdown;
import com.wuseguang.springcloud.service.OiCountdownService;
import com.wuseguang.springcloud.util.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 事件倒计时 前端控制器
 * </p>
 *
 * @author 
 * @since 2020-06-30
 */
@RestController
@RequestMapping("/brands")
public class OiCountdownController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private OiCountdownService oiCountdownServiceImpl;

    /**
     * 班牌查询事件倒计时
     * @param deviceid 设备id
     * @return
     */
    @RequestMapping("/findOiCountdownTo")
    public Result findOiCountdownTo(@RequestParam(value = "deviceid") String deviceid){
        logger.info("班牌查询事件倒计时");
        return oiCountdownServiceImpl.findOiCountdownTo(deviceid);
    }



}

